
const getweima = document.getElementById("erweima");
const getdialog = document.getElementById("daerweima");
const getxiaoweima = document.getElementById("xiaoerweima");
const getxiaodialog = document.getElementById("xewmk");
const Object1 = {
    //鼠标移入x元素显示y元素   鼠标离开x元素隐藏y元素
    Dialogchange(x, y) {
        x.addEventListener("mouseover", function () { y.style.display = "inline-block" });
        x.addEventListener("mouseout", function () { y.style.display = "none" })
    }
}

Object1.Dialogchange(getweima, getdialog);
Object1.Dialogchange(getxiaoweima, getxiaodialog)



const mimadenglu = document.getElementById("mimadenglu");
const duanxin = document.getElementById("duanxin");
mimadenglu.addEventListener("mouseover", function () {
    mimadenglu.style.borderBottom = "1px solid black";
    mimadenglu.style.color = "black";
    duanxin.style.borderBottom = "0px";
    duanxin.style.color = "rgb(134, 123, 123)";
});
duanxin.addEventListener("mouseover", function () {
    duanxin.style.borderBottom = "1px solid black";
    duanxin.style.color = "black";
    mimadenglu.style.borderBottom = "0px";
    mimadenglu.style.color = "rgb(134,123,123)";
});


